Skip to main content
Version: Upcoming

SodCashRecordV5

V8 Message Definiton

SodCashRecords contain a start-of-day currency position that derived from dividend or corporate action being applied to a prior period position. These records are computed and published by SR rotation servers.

METADATA

AttributeValue
Topic4740-risk-v5
MLink TokenClientRisk
ProductSRRisk
accessTypeSELECT
MLink EndpointMLink-Order

Table Definition

FieldTypeKeyDefault ValueComment
accntVARCHAR(16)PRI''
currencyenum - CurrencyPRI'None'
tradeDateDATEPRI'1900-01-01'
srcTransactionenum - SrcTransactionPRI'None'
srcSecKey_atenum - AssetTypePRI'None'prior period sec key that this position record derived from if any
srcSecKey_tsenum - TickerSrcPRI'None'prior period sec key that this position record derived from if any
srcSecKey_tkVARCHAR(12)PRI''prior period sec key that this position record derived from if any
srcSecKey_yrSMALLINT UNSIGNEDPRI0prior period sec key that this position record derived from if any
srcSecKey_mnTINYINT UNSIGNEDPRI0prior period sec key that this position record derived from if any
srcSecKey_dyTINYINT UNSIGNEDPRI0prior period sec key that this position record derived from if any
srcSecKey_xxDOUBLEPRI0prior period sec key that this position record derived from if any
srcSecKey_cpenum - CallPutPRI'Call'prior period sec key that this position record derived from if any
srcSecTypeenum - SpdrKeyTypePRI'None'
srcTradeDateDATEPRI'1900-01-01'prior period trade date that this position record derived from
clientFirmVARCHAR(16)PRI''SR assigned client firm
srCashAmountDOUBLE0
clrCashAmountDOUBLE0
commentTINYTEXT''source description if any
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
accnt1
currency2
tradeDate3
srcTransaction4
srcSecKey_tk5
srcSecKey_yr6
srcSecKey_mn7
srcSecKey_dy8
srcSecKey_xx9
srcSecKey_cp10
srcSecKey_at11
srcSecKey_ts12
srcSecType13
srcTradeDate14
clientFirm15

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRRisk`.`MsgSodCashRecordV5`
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','AUD','BRL','CAD','CHF','CNH','CNY','EUR','GBP','JPY','KRW','MXN','MYR','NOK','NZD','SEK','TRY','USD','USDCents','CZK','ZAR','HUF','USX','GBX','DKK','GEL') */
`currency` = 'None'
AND
/* Replace with a DATE */
`tradeDate` = '2022-01-01'
AND
/* Replace with a ENUM('None','ExAsTrans','Dividend','CashTakeout','SecLending') */
`srcTransaction` = 'None'
AND
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`srcSecKey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`srcSecKey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`srcSecKey_tk` = 'Example_srcSecKey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`srcSecKey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`srcSecKey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`srcSecKey_dy` = 1
AND
/* Replace with a DOUBLE */
`srcSecKey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`srcSecKey_cp` = 'Call'
AND
/* Replace with a ENUM('None','Stock','Future','Option','MLeg') */
`srcSecType` = 'None'
AND
/* Replace with a DATE */
`srcTradeDate` = '2022-01-01'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

Doc Columns Query

SELECT * FROM SRRisk.doccolumns WHERE TABLE_NAME='SodCashRecordV5' ORDER BY ordinal_position ASC;